#ifndef PLAYBACKWIDGET_H
#define PLAYBACKWIDGET_H
//回放列表界面

#include <QWidget>
#include <QLabel>   //标签
#include <QPushButton>  //按钮
#include <QLineEdit>    //编辑框   ctrl+/注释
#include <QCalendarWidget>
#include <QDebug>
#include <QListWidget>
#include "model/videomodel.h"
#include <QMessageBox>
#include "model/usermodel.h"
#include <QCloseEvent>
#include "view/recordwidget.h"
#include <QList>

class PlayBackWidget : public QWidget
{
    Q_OBJECT
public:
    PlayBackWidget(QWidget *parent = nullptr);
    ~PlayBackWidget();

    void init_window();
    void init_control();
    void init_connect();


private:
    QLabel *title, *inputDate;
    QPushButton *enterBtn, *backBtn, *calendarBtn, *prePageBtn, *nextPageBtn;
    QCalendarWidget * calendar;
    QListWidget * listwidget;
    QListWidgetItem *listwidgetItem;

    RecordWidget *record;

    QList<QString> videoList;

public slots:
    void showCalendar();
    void on_calendarWidget_selectionChanged();
    void showVideo(QListWidgetItem* video);
    void showPlay();

    // QWidget interface
protected:
    void closeEvent(QCloseEvent *event);
signals:
    void backToMain();
};

#endif // PLAYBACKWIDGET_H
